package com.lz;

/**
 * @description
 *
 * @date 2021-11-13 14:34
 *
 * @author Lizhong
 */
public class ClassLoader
{
    public static void main(String[] args) {
        System.out.println(X.i);
        System.out.println(Y.i);
    }
}
class X{
    static int i=1;
    static {
        i=10;
        System.out.println("init");

    }
}
class Y{
    static {
        i=10;
        System.out.println("init");
    }
    static int i=1;
}
